home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010921-20020314
/
000131_fdc@watsun.cc.columbia.edu_Thu Nov 8 10:01:02 EST 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
52 lines
Article: 12949 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.unix.sco.misc,comp.protocols.kermit.misc
Subject: Re: OSR5 <sys/termio.h> (OSR5 modem signals)
Date: 8 Nov 2001 14:50:28 GMT
Organization: Columbia University
Lines: 35
Message-ID: <9se63k$kqo$1@newsmaster.cc.columbia.edu>
References: <9s775v$ip0$1@newsmaster.cc.columbia.edu> <9s9344$4n$1@newsmaster.cc.columbia.edu> <9sc7ku$81i$1@newsmaster.cc.columbia.edu> <3bea05eb$0$79559$8eec23a@newsreader.tycho.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1005231028 21336 128.59.39.2 (8 Nov 2001 14:50:28 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 8 Nov 2001 14:50:28 GMT
Xref: newsmaster.cc.columbia.edu comp.unix.sco.misc:140030 comp.protocols.kermit.misc:12949
In article <3bea05eb$0$79559$8eec23a@newsreader.tycho.net>,
John DuBois <spcecdt@deeptht.armory.com> wrote:
: In article <9sc7ku$81i$1@newsmaster.cc.columbia.edu>,
: Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
: >If anybody has OSR5.0.5 code that drops DTR and then turns it back on
: >that works (e.g. brings DTR back up after the pause and if RTS also went
: >down, it comes back up too), I'd sure like to see it.
:
: I think you'll just need to close the device, open it, & re-initialize it.
:
As noted in an earlier posting, when I tried that on my 505 system:
tcgetattr(ttyfd, &ttcur);
close(ttyfd);
(pause)
ttyfd = open(name,O_RDWR|O_NONBLOCK);
tcsetattr(ttyfd,TCSADRAIN,&ttcur);
DTR and RTS drop for the desired interval and they both come on again.
However, any write() to the reopened device gets error 11, "Resource
temporarily unavailable". Did I miss a step? Or is this a difference
between 5.0.6a and earlier OSR5s?
: >However, TIOCMGET still seems problematic -- it reported that
: >all modem signals (DTR, DSR, RTS, CTS, RI) were off when connected to a
: >modem with a fully populated modem cable. Can anybody confirm or deny this?
:
: Well, I can tell you than on a stock 5.0.6a system and using a standard (sio)
: port, this code:
:
: #define _SVID3
:
Aha, maybe that was the missing piece. Thanks.
- Frank